package com.springboot.framework.controller.request;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import java.util.Date;

/**
 * @Author SWF
 * @Date 2019/6/6 17:31
 **/
@Data
public class CategoryInsertBean {

    @NotEmpty(message = "品类名不能为空")
    private String name;

//    @NotEmpty(message = "参数错误")
//    private String sort;

    @NotEmpty(message = "请上传预览图")
    private String cover;
}
